﻿namespace MvcSupplantCaching
{
    /// <summary>
    /// A basic struct for an entry in the <seealso cref="SupplantCache"/>.
    /// </summary>
    public struct SupplantCacheItem
    {
        /// <summary>
        /// The cached entry's key.
        /// </summary>
        public string Key { get; set; }

        /// <summary>
        /// The function that was cached.
        /// </summary>
        public object Function { get; set; }

        /// <summary>
        /// The start index of the token.
        /// </summary>
        public int StartIndex { get; set; }
    }
}
